fix padding to generate proper rom