Fixed before_filter on time_spents