fix bug causing mediaquery end to go to block