fix to not change path variable if variable is large, warn instead