Fixed some rendering issues on mobile devices