fixed null position bug