Fixed a bug that an error occurs in the case of shape's drawable was already abandoned when the eventFunc is called.