fix wrong logic issue