Revert "fix logic"

This reverts commit c83b87276f18c66b17bc15a7f8c1375d6349730b.