fix for rail 3.2