fix empty block creation