float/integer issue found in session.rb