Fixed last_two_slices activrecord bug