fixed uninitialied error