err in base controller fixed