fix empty block return