Fixed so it works with new Corona SDK.