fixed error with first time check