Work around rails bug