Stairs gap not working

hi guys,

i want to make a hole for my staircase and make it as a HB Room but i get this error

the only correct solution is when i join solid and flattern but in this case i do not see the stair case slab in each floor.

any help pleaase?

Regards