fixed small bug in modal