Perimbó: Bug fixes

Fixed some bugs