Fix scala app