fix deprecated syntax.