Plus, how to prevent them in the future.