Update Makefile

fix bugs