fix r