fix prototype name when creating new prototype