fixes (length not defined before, cocat with none)