fixed crypto error