fixed uninvited bug