Default fail 2 flash rom to stock rom

whenever i try to flash rom to stock rom it fails but it works on rom slot 1
bu roms stuck on loading screen when shut down or reboot if install on rom slot 1
how can i make install on stock slot?