fixed compile errors
can't believe this actually happened