Fixed: throwing nullRef exception.