fix broken main layout