added a fix for firefox
fixed FF, Safari  #18