Fix typo in apr function call