On calculating forces on dislocations with FEM