Fixed application layout bug