fixed primitive "apply"