corrected the deface for rails 2