Fix a bug: can't create block in some case.