remove double-slashed when registering a pakckage