repaired bug with alloc memory