Disable prototype extensions in the right place

Many Thanks to @bcardarella for spotting this!