Fixed small bugs

Fixed some macros in globals.h were supposed to write to memory but weren't changing anything