Hoping this fixes

There is a bug with it not knowing what c is, so I moved it outside the
if and removed debug variables (debug variables work)