Fixing display wire function's logic