fix some small issues in display and compile