What are the common mistakes to avoid in your program when using loops?