Fix error without custom outputs not being properly allocated