minor fixes: firefox, safari ios7