Fixed error and compiling