fix bug overlay is remained if error