fixing double calloc