Fixed up some inconsistencies in powder pattern creation