fix interface bugs