added firefox support to previous fix