Fixes to the hashvarchange events to work properly