Fixed some weird R error