fixed invalid when it's a noun. Not sure I've gotten it right though.