Fix: error when callback is an array