fixed markers function in plot helper