it'll either be them not being bled properly, if there is an air lock in the system and it's found it's way to the valve block things do go decidedly pear shaped
the resivous cap not being put back on properly
or the pads and discs not beinbg bedded in yet giving you a spongey pedal
but my money is on the cap not being on