fixing a crash from sailthru gem