fixed potential problem