It’s possible that they’re both amazon swords, there’s a few different species. Look up pictures of Anubius and see if the base of the plant looks similar to yours. I second that both Anubius and java fern need to be attached to driftwood or rocks rather than planted. I personally use those ties...