Fix bug that sets font to 'null'