Fixed error in CheckController