fixed bug where cost could not be edited