That has happened to me too several times recently. My last 3 buys over the past two weeks, I hit the ask and got a bit less. Each time I was left with some extra cash but not enough really after the commission to make it worthwhile to use it to buy more shares.