fixing some browser bugs