Compile error in controller fixed