Fix logic (comment #cb376dd)