Fixes call array compacting. Solves #308.