Fixed change_active_buffer() not actually changing the active buffer