fixed issue with writeCheck method.