Fix bug rendering text fields positioned in a container