fixing compfwk reg bug