bugfix & update rails