Fixes err param not being passed.