fix registry errors in command blocks