fixed firefox and mobile erorrs