Fixed some interface bugs