Corrected callback crashing app when array