fixed bug for rails 4.1.5, request session looks to the different