Logical bug with no effect