fix some known bugs in interface