fixed undefined.