Another thing to do to clear up flaky system behavior is Repair Permissions. Do this by opening Disk Utility (Applications/Utilities/Disk Utility) and clicking "Repair Permissions"
It also doesn't hurt to run some general maintenance scripts on your Mac from time to time. There are many free programs out there that run the full gammut of maintenance scripts, but
Cocktail seems to be a preferred program on this forum.