Fixed bug with prototypes