Fix the issues with a possible empty length