Fix NPE in request