Fix set stayontop. Warning: clear flag does not working