Fixed scalable layout bug