works in IE now, fixed bug