Fix no callback for empty files