Minor fixes to make updateFont function works