fixed the bad check in