fixes method for firefox