fix wrong boolean