fixed a bug with share plan