bug fix, grid was passed instead of factory. Strange that this compiled before.