fixes a bug in expert mode