fix load feature cost function