Fixed logical operator issue (#4)