fix simulator sha implementation