An attempt from Uber to evade an employment discrimination investigation, while “creative,” did not pass legal muster, a federal judge ruled.

U.S. District Judge John F. Murphy of the Eastern District of Pennsylvania on Aug. 23 threw out a lawsuit Uber filed seeking to enforce its arbitration agreement with a former employee. Murphy ruled that the ride-hailing company could not use the agreement as a means to stop an investigation by the Pennsylvania Human Relations Commission.