Fix/tkregister error reporting