fixed bug un-initialized