Fixing issue with ResetDefaultLayout.