Fixed Code for warning on layout.