Crypt doesnt work always