RW: fixed an error