Bug/incorrect stock graph especially after migration

@everyone this seems to fix stock graph bug after migration(which i think was there but maybe the migration made it obvious), but i need more testing from others.