fix remove_prefix on None prefix