fixed some issues with firefox