fixed bugs in GameObject