fixing latex compile errors