fix block layout