The addon MobileFrames changes the parent. So you get a LUA error at those lines. After this change, it works with and without MobileFrames. MobileFrames: https://drive.google.com/file/d/0BxUEpLqG5Y0Edm5HbFNWdjFtbWM/view