fixed #701 nicEdit: sometime B is null