Fixed issue with function parsing