Fix some interface bugs. Tested with Greenhead, and it works