fix for bloody ie (well, I broke it really...)