Fix bug exportbtn not working