fixed a recent bug for generating the function header as property.