#667 fixed issue with stage history api when there are multiple jobs within stage