Fix for built-in apply