fix overlay error while set to false

fix overlay error while set to false
Updated inline doc