fix for regid