Are you getting any messages in your console log on your device: http://www.coronalabs.com/blog/2013/07/09/tutorial-basic-debugging/
Are you checking to make sure when you read your file in that you are really reading it in and that it has the values you expect? Adding prints in will help you determine this.
Rob