Fixed some firefox issues