update rails  and fix filter