fixed a bug in the interface