Fixed R draw bug