Ensured that this now works on ie 7