ifixed typo on check_variables