fixed read lagrangian bug