main layout bug