fixing the chsh check