What version of Godot are you using?
Ah, I was using 3.1, it fixed itself once i tried running it in 3.2!