Fixed calling callback functions that were passed as array members