fixed issue on ie, added on ready