HiCristian,
If you hide the top cubes, you can see better what is happening:

This is the normal behavior; each Vertex on those Edges are scaled towards the center.
There is an Addon, ‘Inset Straight Skeleton’ that, when you fill in a Face and then Search for Inset Straight…., or goto Face > Inset Straight… would give you:

Which might be more what you are looking for…you’d have to Delete some unwanted Geometry and maybe Merge those three Verts on each of the corners, but it’s a possibillity.
Or Extrude and Move each side by itself(leaving out the corner Vertices and filling those later.