Fixed bug

Fixed uninstantiated class error.