Fix a small bug, need to clear the array that contains books data, or it will persist on next loop iteration