Fix bug with check_hash on non-comptoir pages