bugfix first part of rails hw