Notice: Array to string conversion fixed