Fixed calculation bug
Fixed IE8 style issues