Bug in function parser