added explicit defined check to avoid warning
Fixed terrible typo added while refactoring. Alas, even a type system wouldn't have saved me this time.
fixed a refactoring error that was unlikely to have caused problems ever