Fix error with uninitialize var