fix bug,
while layout is not finished.

Signed-off-by: qijiang.guo <qijiang.guo@gmail.com>