Fixed a bug where the shorthand function would not be called correctly