Makefile, fix registration