Throw exception when defining stage before servers