Fix loading error with empty lines