object origin bugfix by Ian Lloyd Dela Cruz