changing reg_get_key_ function fixes calc crash
Merge pull request #3 from Thorsten-Sick/fixing_calc_crash_2

changing reg_get_key_ function fixes calc crash