Fixed error with complete_check function