Fix errors in ie8

Still doesn't work though.