fix memory datasource crash - refs #281