bugfix accept type const