fix modal disapearing on hash changed