Fixed uncaught object exception.