closed #2393:fix a bug caused by marking functions as deprecated