Fix build history wrapping