fixes on register controller