bug with -r