Trying to fix wear crash due to NPE