added create function, hotfix

need to take this hotfix. Its related to product types which isnt used much but just in case someone does the system crashes.