Compile error fixing