Fixed a function being used as a field