Error fixed rfor leaveDetails