weird null pointer exception during initialization of CheckPlane fixed