fixed how it is checking if is complete