Bug fixes to displaying functions.