Although rewritten, the condition still doesn't work