Fix blockFactory