add_block() bug fixed