fixing errors with rwanalysis