fix load_buffer error bug