City vow to learn from fire