invalid check fixed
fix: initialize aux variable to NULL