Fix sort hash