correction for auto layout