fixed potential error