Fixes bug in prototype plugin