fix nullpoint