Revert "fixed a crash"

This reverts commit a0c888ca1ad11e2d6a2a9af7ffaf5c677f83a594.