Fix the layout passed to null