fixing bugs in spec files