Fix broken hash URL functionality by adding missing parseInt()