Fixed bugs and optimize code