Correct a bug in the get object orientation