Line search function eval bug fixed