fixed a bug in utility class