rails bug finally fixed