Some fixes

Change "logig.h" to "logic.h"