fixes a bug that prevented showing torque when using the createLayer method