Fixing auto adjust layout