fixing rendering bug for blocks