ss3d: fixed some bugs