bug fix in inventory screen when device rotates.