Foundation Placing Bug

Game mode: [Online | Singleplayer] (Both)
Problem: [Bug | Misc]
Region: N/A

[Free text]
I tried placing foundations on ceilings or on top of other foundations but no matter what I try I cant place foundations in inner corners or what seams like random spots, I even tried flying and getting in positions that I normally cant get to in online and still could not place (Note I could only fly with commands in singleplayer ). I

Steps on how to reproduce issue:

  1. Try to cover cielings with foundations on top
  2. Sometimes stacking foundations you cant place them in inner corners