Fixed bug with btnLastPiece and btnLastPeriod

The bug led to a different visual style in these two buttons compared
with the rest on the form.