fixed typing error

cost => entryCost