fix ending prefix with a namespace separator