small fix for minute buckets serialization
simplifyed code for minute buckets