Fix prototype scope