Fix ground model bugs.