Fixes when selecting from the SMS table