Just a suggestion… but I just spent an hour pulling my hair out trying to figure out why object.currentFrame API was not working in my code. If you look on the page in the documentation there is no explanation anywhere that the code has been depreciated.
http://docs.coronalabs.com/api/type/SpriteInstance/currentFrame.html
The page should be clearly labeled and a forward reference to the new object.frame page.