fix overlay error while set to false