fix problem with 3d disabled