Fixed 'overlay' error on reset.