fix issue with auto-layout