Revert "Fix Logical error"

This reverts commit 2446f9beda0f8ba28f8f54b4d184ba5dd2529632.