[Fixes issue #77]  bug fix creating prototypes