put James's fix for hashing bug back in app