Fixed a bug

Uncaught TypeError: Cannot read property 'prototype' of undefined