Fix prototype design pattern