Added minor bug fix to prior stage