fixing warn bug