Fixed environment when no newline was present.