Fix unclean check