Fixed bug in local cost calculating