fix dictionary key const error