Fixed nextNull not working