fixed bug in divide.data.frame