Fixed how debug is put into _G

This should work