It apparently works, it just has to send the done signal at the right time. It seems that something is not being incremented at the right time as well, about to address this issue.