fix incorrect return type in typedef