fixed issues in blocks manager