bug fixes for paper builder