Fixed bug around missing data.