bug fixes for schema registry