Handled shortReferenceSequenceException and bug fix