Fixed bug in iPad view