Fixed minor bugs with old browsers