fixed bugs and make three js