fixed cryptor bugs