bugfixing registry demo part