handle unexpected register values