You did fine, no harm was done. I like your form of "punishment" a lot better than the folks who say they spank their dog.
Play major fetch with Lexi an hour or so before bedtime. Get her all tuckered out so she will sleep and not be active when you are trying to get some rest. "A tired pup is a good pup"!
Sleep well, my friend!