Update main.rs

Fixed bug