fixed issue with too many padding characters