fixed bug that may lead to free()ing static memory