Fixed "max uses" logic error