fixed some interface bugs