Fixed rinari bug