fix npe when no last argument is present