Fix bug in small screen adaptation