fixed typo in linear value function