fix logic condition for wrong args