fix bug related to function parser (that would have caused errors in the future)
Authored by: widmfeli 2020-06-14
Parent: [r643]
Child: [r645]