fixed a bug getView() error