Fixed a bug in scene5