Fix error when played inside iOS facebook application