fixed null variable