change layout from nil to null