Fix potion bug with setclass command.