fix overlay false option when the open option is true