magic fix for sm crashes....