fixed optional Custom Type null access