Bug fix makefile