Snapchat says sorry for the hack, with a tweak to its app