fixed an issue occuring in firefox