fixed extract marks bug