solved problem with support for Firefox