default types null exception corrected