Fixed IE bugs and statename issue when on stateboxes