Removed Logical error