fixing get marks bug