Fixed some bugs in the function syntax.