Fixed UI bug on different devices