Fixed bug for small devices