Fixes typo: $@ -> $(1) in function