fixed bugs.

fixed some bugs related to ron.