fix bug

if pot is null