fixed the crypt error