fixxed a bug