Setting the outputs with latx.x instead of portx.x solved the problem.
Tanks.