Fix calculating inputs height after import