Eliminated 'Unable to set layout' Error