scrypt: fix #852