Solved errors at compiling