I guess the item had been setup with inventory model Moving average on IMG.
Please give more us details as to understand what could have went wrong. What changes you had done to BOM lines more specifically. Also read through the following to understand how system accounts the item cost in case of Moving average costing: http://technet.microsoft.com/en-us/library/hh597235.aspx