Fix issue with length on some systems