fatal error on debug mode on fix, minor change