Bugfix. apply needs to be passed an array of arguments