fixed error with layouts mod switching