Fixed flatten() issue