fix created_at/updated_at bug