Fixes nil issue.