Fix mobile rendering bug