fix add cost
fix
fix
fix
Merge pull request #214 from sidschingis/master

fix