fixed crash due to missing helper function