Fixed bug in FunctionHelper.getPlayerID