Fixes safari issues