Fix build lifecycle