S4 bugfix to aggrmesh()