fix ensureSuffix