fixed the default check

previously it errored in IDEs with pre-compilers