fix for crash at changing mass when not at frame 1